/*
** my_strdup.c for my_strdup in /home/goupil_r//afs/Jour_08
**
** Made by robin goupil
** Login   <goupil_r@epitech.net>
**
** Started on  Wed Oct 10 09:35:10 2012 robin goupil
** Last update Sat Nov  3 10:17:32 2012 robin goupil
*/

#include <stdlib.h>

char	*my_strdup(char *src)
{
  int	length;
  char *dup;

  length = my_strlen(src) + 1;
  dup = malloc(length * sizeof(char));
  my_strcpy(dup, src);
  dup[length] = 0;
  return (dup);
}
